/*
 * Copyright (c) 2017-present, CV4J Contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.cv4j.core.pixels;

import com.cv4j.core.datamodel.Scalar;

/**
 * ClusterCenter
 *
 * @author dev
 * @date 2021/07/22
 */
public class ClusterCenter {
    /**
     * x1
     */
    protected double x1;
    /**
     * 日元
     */
    protected double y1;
    /**
     * 颜色
     */
    protected Scalar color;
    /**
     * c指数
     */
    protected int cIndex;
    /**
     * num的点
     */
    protected int numOfPoints;

    /**
     * ClusterCenter
     *
     * @param x1 x1
     * @param y1 y1
     * @param red 红色的
     * @param green 绿色
     * @param blue 蓝色的
     */
    public ClusterCenter(int x1, int y1, int red, int green, int blue) {
        this.x1 = x1;
        this.y1 = y1;
        this.color = new Scalar(red, green, blue);
    }
}
